package com.sneakxy.mybase4j.platform.service;

import com.alibaba.dubbo.config.annotation.Reference;

import com.sneakxy.mybase4j.base.service.BaseService;

import com.sneakxy.mybase4j.platform.beans.LauncherSetting;
import com.sneakxy.mybase4j.platform.beans.LauncherSettingId;

import com.sneakxy.mybase4j.platform.provider.ILauncherSettingProvider;

import com.sneakxy.mybase4j.platform.service.ILauncherSettingService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import org.springframework.stereotype.Service;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
@Service
public class LauncherSettingService extends BaseService<LauncherSetting, LauncherSettingId, ILauncherSettingProvider> implements ILauncherSettingService {

	@Reference(version = "1.0.0")
	@Autowired(required = false)
	@Qualifier("launcherSettingProvider")
	private ILauncherSettingProvider provider;

	@Override
	public ILauncherSettingProvider getProvider() {
		return this.provider;
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.platform.service.ILauncherSettingService#deleteByLid(java.lang.String)
	 */
	@Override
	public long deleteByLid(String lid) {
		return this.getProvider().deleteByLid(lid);
	}

}
